package main

import (
	"blogApi/middlewares"
	"blogApi/models"
	_ "blogApi/routers"
	"github.com/astaxie/beego"
)

func init() {
	// 跨域
	middlewares.CorsDomain()
	// 登录验证
	middlewares.Init()
}

func main() {
	models.Init()
	beego.Run()
}
